package com.gzhryc.shared_device.oem.code.agent.dao.db;

import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;
import com.gzhryc.shared_device.oem.code.business.EBusinessType;

@Table(name="agent_business_config")
public class AgentBusinessConfig {
	
	@PrimaryKey
    @Column(name = "user_id", notNull = true)
    protected Long userId;

    @PrimaryKey
    @Column(name = "business_type", notNull = true)
    protected String businessType;
    
    @Column(name="service_charge_ratio",notNull = true,note = "服务费比例")
    protected Double serviceChargeRatio;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}

	public Double getServiceChargeRatio() {
		return serviceChargeRatio;
	}

	public void setServiceChargeRatio(Double serviceChargeRatio) {
		this.serviceChargeRatio = serviceChargeRatio;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getBusinessTypeName() {
		return EBusinessType.note(this.businessType);
	}
    
}
